﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace WebSocketStressTesting
{
    internal class Reflect
    {
        internal static Module module;
        internal delegate void Delegate0(object o);

        static Reflect()
        {
            Reflect.module = typeof(Reflect).Assembly.ManifestModule;
        }

        public Reflect()
        {
        }

        internal static void kqNf0qnnQSqiA(int typemdt)
        {
            Type type = Reflect.module.ResolveType(33554432 + typemdt);
            foreach (FieldInfo fieldInfo in type.GetFields())
            {
                MethodInfo method = (MethodInfo)Reflect.module.ResolveMethod(fieldInfo.MetadataToken + 100663296);
                fieldInfo.SetValue(null, (MulticastDelegate)Delegate.CreateDelegate(type, method));
            }
        }

    }
}
